﻿@using NewLife.Common;
@using NewLife.Cube.WebMiddleware;
@using NewLife.Cube.Charts;
@{
    var set = NewLife.Cube.CubeSetting.Current;
    var set2 = ViewBag.PageSetting as PageSetting ?? PageSetting.Global;

    var title = ViewBag.Title + "";
    if (set.TitlePrefix && title != "" && !title.Contains(" - "))
    {
        title += " - " + NewLife.Common.SysConfig.Current.DisplayName;
    }

    var res = set.ResourceUrl;
    if (String.IsNullOrEmpty(res)) res = "/Content";
    res = res.TrimEnd('/');

    var ver = typeof(ControllerBaseX).Assembly.GetName().Version;
}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="新生命团队,NewLife,魔方,Cube,XCode" />
    @*上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！*@
    <title>@title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon">

    <!-- 页面内联样式 -->
    <link rel="stylesheet" href="@res/layui/css/layui.css" />
    <link rel="stylesheet" href="@res/layui/css/layui_cube.css" />
    @RenderSection("css", required: false)

    <!-- JQuery作为一等公民，页面内部随时可能使用 -->
    <script src="@res/js/jquery-3.6.0.min.js"></script>
</head>
<body>

    @RenderBody()

    <!-- 脚本 -->
    <script src="@res/layui/layui.js"></script>
    <script src="@res/layui/layui_cube.js"></script>
    @RenderSection("scripts", required: false)
</body>
</html>